//
//  TeamViewController.m
//  chanyou
//
//  Created by 高爽 on 15-1-17.
//  Copyright (c) 2015年 wanli. All rights reserved.
//

#import "TeamViewController.h"

#define SCREEN_WIDTH ([UIScreen mainScreen].bounds.size.width)
#define SCREEN_HEIGHT ([UIScreen mainScreen].bounds.size.height)



@interface TeamViewController ()

@end

@implementation TeamViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    [self.navigationController.navigationBar setBackgroundImage:[UIImage imageNamed:@"login_backgroud_biaomian"] forBarMetrics:UIBarMetricsDefault];
    self.navigationItem.leftBarButtonItem = [[[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"iconfont-back.png"] style:UIBarButtonItemStyleDone target:self action:@selector(backAction)] autorelease];
    
    self.navigationItem.title = @"关于游遇";
    
    
    UIImage *img = [UIImage imageNamed:@"backback.jpeg"];
    UIImageView *background = [[[UIImageView alloc] initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT)] autorelease];
    background.image = img;
    background.alpha = 0.65;
    [self.view addSubview:background];
    
    UILabel *titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 64, SCREEN_WIDTH, 100)];
    [titleLabel setText:@"游  遇"];
    // [titleLabel setFont:[UIFont systemFontOfSize:50]];
    [titleLabel setTextAlignment:NSTextAlignmentCenter];
    [titleLabel setTextColor:[UIColor blackColor]];
    [titleLabel setFont:[UIFont fontWithName:@"Arial-BoldItalicMT" size:50]];
    [self.view addSubview:titleLabel];
    [titleLabel release];
    
    UIView *bodyView = [[[UIView alloc] initWithFrame:CGRectMake(15, SCREEN_HEIGHT / 3 - 30, SCREEN_WIDTH - 30, 140)] autorelease];
    bodyView.layer.cornerRadius = 4;
    bodyView.backgroundColor = [UIColor whiteColor];
    bodyView.alpha = 0.7;
    [self.view addSubview:bodyView];
    
    UILabel *team = [[[UILabel alloc] initWithFrame:CGRectMake(10, 0, self.view.frame.size.width - 40, SCREEN_HEIGHT / 4)] autorelease];
    [team setNumberOfLines:0];
    [team setText:@"制作团队 萌萌哒❤️\n       MR.陈: 思路清晰 认真严谨  满头华发的不苟言笑的小老头\n       MR.萝莉: 追求完美 细心钻研 装B假正经爱卖萌的小伙儿\n       MISS.爽儿: 热情开朗 踏实肯干 调皮捣蛋粗心大意的小丫头 "];
    [team setFont:[UIFont fontWithName:@"Arial-BoldItalicMT" size:16]];
    [bodyView addSubview:team];
    
    UIView *other = [[[UIView alloc] initWithFrame:CGRectMake(15, SCREEN_HEIGHT / 2 + 40, SCREEN_WIDTH - 30, SCREEN_HEIGHT / 3)] autorelease];
    [other setBackgroundColor:[UIColor whiteColor]];
    other.layer.cornerRadius = 4;
    other.alpha = 0.7;
    [self.view addSubview:other];
    
    UILabel *thanks = [[[UILabel alloc] initWithFrame:CGRectMake(10, 0, self.view.frame.size.width - 20, 30)] autorelease];
    [thanks setText:@"❤️感谢您对我们的支持~,~❤️"];
    [thanks setTextColor:[UIColor redColor]];
    // [thanks setTextAlignment:NSTextAlignmentCenter];
    [thanks setFont:[UIFont systemFontOfSize:20]];
    [other addSubview:thanks];
    
    
    UIImage *img2 = [UIImage imageNamed:@"swipe.jpg"];
    UIImageView *swipe = [[UIImageView alloc] initWithFrame:CGRectMake(self.view.frame.size.width / 2 - 60, 40, 100, 100 )];
    swipe.image = img2;
    // swipe.center = CGPointMake(other.frame.size.width / 2, other.frame.size.height / 2);
    [other addSubview:swipe];
    [swipe release];
    
    
    UILabel *subTitle = [[[UILabel alloc] initWithFrame:CGRectMake(0, SCREEN_HEIGHT - 45, SCREEN_WIDTH, 30)] autorelease];
    [subTitle setText:@"期待在路上与你不期而遇!  ~,~"];
    [subTitle setTextColor:[UIColor blackColor]];
    [subTitle setTextAlignment:NSTextAlignmentCenter];
    [self.view addSubview:subTitle];
    
}
- (void)backAction
{
    [self dismissViewControllerAnimated:YES completion:nil];
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
